package com.goulin.docker.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author goulin
 * @Title: ${file_name}
 * @Description: ${todo}
 * @date 2018/11/148:39 PM
 */
@Controller
@Slf4j
public class IndexController {

    @GetMapping("/**/*.html")
    public String page(HttpServletRequest request){
        String uri = request.getRequestURI();
        return uri.substring(0,uri.lastIndexOf("."));
    }
}
